<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
		<style type="text/css">
			#d1{
				width:100px;
				height:100px;
				border:1px solid red;
				/* 相对定位 */
				position: relative;
				top:40px;
				left:20px;
				
			}
			#d2{
				width:100px;
				height:100px;
				border:1px solid pink;
			}
		</style>
	</head>
	<body>
		<div id="d1">div1</div>
		<div id="d2">div2</div>
	</body>
</html>